using System;

namespace OpenSource.SpreadsheetFactory
{
    /// <summary>
    /// Sets additional options for spreadsheets
    /// </summary>
    [CLSCompliant(true)]
    [AttributeUsage(AttributeTargets.Struct | AttributeTargets.Class)]
    public sealed class SpreadsheetFactoryOptionsAttribute : Attribute
    {
        /// <summary>
        /// Gets or sets the title of the spreadsheet.
        /// </summary>
        /// <value>The title of the spreadsheet.</value>
        public string Title { get; private set; }

        /// <summary>
        /// Initializes a new instance of the <see cref="SpreadsheetFactoryOptionsAttribute"/> attribute.
        /// </summary>
        /// <param name="title">The title of the spreadsheet</param>
        public SpreadsheetFactoryOptionsAttribute(string title)
        {
            this.Title = title;
        }
    }
}

